﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using Lidgren.Network;
using Model.LiveControl;
using Network.Extensions;

namespace Network.Messages.LiveControl
{
    /// <summary>
    /// 
    /// </summary>
    public class ResponseRectListMessage: NovaMessage
    {
        public ResponseRectListMessage()
            : base((ushort)CustomMessageType.ResponseRectListMessage)
        {
            RectList = new RectList();
        }

        public RectList RectList;

        public override void WritePayload(NetOutgoingMessage message)
        {
            base.WritePayload(message);
            RectList.WritePayload(message);
        }

        public override void ReadPayload(NetIncomingMessage message)
        {
            base.ReadPayload(message);
            RectList.ReadPayload(message);
        }
    }
}
